package com.px.controller;

import com.px.service.CardService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class CardController {
    @Resource
    private CardService cardService;
    /**
     * 身份证查询
     * @param name
     * @param idCard
     * @return
     * @throws Exception
     */
    @PostMapping("/verify")
    public String verify(String name,String idCard)throws Exception{
        return cardService.verity(name, idCard);
    }
}
